using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace idea.tools
{
    class BarCodeBoxTool
    {
        private TextBox m_txtBox;
        public BarCodeBoxTool(TextBox txtBox)
        {
            m_txtBox = txtBox;
            m_txtBox.Enter += OnEnter;
            m_txtBox.KeyPress += OnKeyPress;
            m_txtBox.Click += OnClick;
        
        }
        private void OnEnter(object sender, EventArgs e)
        {
            m_txtBox.SelectAll();
        }
        private void OnKeyPress(object sender, EventArgs e)
        {

        }
        private void OnClick(object sender, EventArgs e)
        {
           // m_txtBox.SelectAll();
        }
      
    }
}
